package com.test.jaxb;

import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;

@XmlRootElement(name = "helloworld")
public class Student
{
	@XmlElement(name = "welcome")
	private String studentName;
	
	private int studentAge;
	
	private String studentAddress;
	
//	@XmlElement(name = "myTeacher")
	private Teacher teacher;

	public String getWelcome()
	{
		return studentName;
	}

	public void setWelcome(String studentName)
	{
		this.studentName = studentName;
	}

	public int getStudentAge()
	{
		return studentAge;
	}

	public void setStudentAge(int studentAge)
	{
		this.studentAge = studentAge;
	}

	public String getStudentAddress()
	{
		return studentAddress;
	}

	public void setStudentAddress(String studentAddress)
	{
		this.studentAddress = studentAddress;
	}

	public Teacher getTeacher()
	{
		return teacher;
	}

	public void setTeacher(Teacher teacher)
	{
		this.teacher = teacher;
	}
}
